<template>
  <div class="statistics_tran">
    <TitleBar
      title="交易统计"
      refresh
    />
    <tranData />
    <customer />
  </div>
</template>

<script>
import tranData from '../comptent/transactionData'
import customer from '../comptent/customer'
// import { startYMD, endYMD, subStr } from '@/utils/util.js'
export default {
  components: {
    tranData, customer
  },
  inject: ['reload'],
  data() {
    return {
      month: () => {
        return new Date().getMonth()
      }
    }
  },
  methods: {
    // 刷新
    refBtn() {
      // this.$refs.mydata.getTableList(startYMD(this.month()), endYMD(this.month()))
      // this.$refs.mydata.getRateList(startYMD(this.month()), endYMD(this.month()))
      this.reload()
    }
  }
}
</script>

